<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: geo3dml::PBRMaterial Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegeo3dml.html">geo3dml</a></li><li class="navelem"><a class="el" href="classgeo3dml_1_1_p_b_r_material.html">PBRMaterial</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classgeo3dml_1_1_p_b_r_material-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">geo3dml::PBRMaterial Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>可视化材质参数。 地调局标准（简称局标，或v1版标准）与地理信息协会标准（简称协会标准，或v2版标准）使用不同的材质定义。 两个版本使用完全不同的属性。但从实际效果看，v2版本涵盖了v1版本。  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_p_b_r_material_8h_source.html">PBRMaterial.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8a4acc69c944329f9f8beb24bee3b4bf" id="r_a8a4acc69c944329f9f8beb24bee3b4bf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8a4acc69c944329f9f8beb24bee3b4bf">PBRMaterial</a> ()</td></tr>
<tr class="separator:a8a4acc69c944329f9f8beb24bee3b4bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a912b401796a684dc8fedaaa6b002c85b" id="r_a912b401796a684dc8fedaaa6b002c85b"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a912b401796a684dc8fedaaa6b002c85b">~PBRMaterial</a> ()</td></tr>
<tr class="separator:a912b401796a684dc8fedaaa6b002c85b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5c04ab716dd2dc987dade7d84ecb4a4" id="r_ac5c04ab716dd2dc987dade7d84ecb4a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac5c04ab716dd2dc987dade7d84ecb4a4">SetBaseColor</a> (const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;clr)</td></tr>
<tr class="memdesc:ac5c04ab716dd2dc987dade7d84ecb4a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">基础颜色  <br /></td></tr>
<tr class="separator:ac5c04ab716dd2dc987dade7d84ecb4a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3c7de1244636330ca88536579d9fc58" id="r_ad3c7de1244636330ca88536579d9fc58"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad3c7de1244636330ca88536579d9fc58">GetBaseColor</a> () const</td></tr>
<tr class="separator:ad3c7de1244636330ca88536579d9fc58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a5537fa2939159bc46d2c088aaa89a6" id="r_a8a5537fa2939159bc46d2c088aaa89a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8a5537fa2939159bc46d2c088aaa89a6">SetBaseTexture</a> (const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;tex)</td></tr>
<tr class="memdesc:a8a5537fa2939159bc46d2c088aaa89a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">基础纹理。有纹理时忽略基础颜色参数。  <br /></td></tr>
<tr class="separator:a8a5537fa2939159bc46d2c088aaa89a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8e11fc78b07ef8c0ebdd8de8e255fdb" id="r_af8e11fc78b07ef8c0ebdd8de8e255fdb"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af8e11fc78b07ef8c0ebdd8de8e255fdb">GetBaseTexture</a> () const</td></tr>
<tr class="separator:af8e11fc78b07ef8c0ebdd8de8e255fdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc6e5e5bc0661a42eea5f808bdf9c3d" id="r_a8cc6e5e5bc0661a42eea5f808bdf9c3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8cc6e5e5bc0661a42eea5f808bdf9c3d">SetEmissiveColor</a> (const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;clr)</td></tr>
<tr class="memdesc:a8cc6e5e5bc0661a42eea5f808bdf9c3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">对象发光时的颜色。  <br /></td></tr>
<tr class="separator:a8cc6e5e5bc0661a42eea5f808bdf9c3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd22d20f9e65b558b02c418c88cabe18" id="r_abd22d20f9e65b558b02c418c88cabe18"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abd22d20f9e65b558b02c418c88cabe18">GetEmissiveColor</a> () const</td></tr>
<tr class="separator:abd22d20f9e65b558b02c418c88cabe18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0bc79d8894d179aebcee2defaceccc7" id="r_ad0bc79d8894d179aebcee2defaceccc7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad0bc79d8894d179aebcee2defaceccc7">SetNormalTexture</a> (const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;tex)</td></tr>
<tr class="memdesc:ad0bc79d8894d179aebcee2defaceccc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">对象的法向纹理。  <br /></td></tr>
<tr class="separator:ad0bc79d8894d179aebcee2defaceccc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac69b77e4f90de77ef77ed2405b083b59" id="r_ac69b77e4f90de77ef77ed2405b083b59"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac69b77e4f90de77ef77ed2405b083b59">GetNormalTexture</a> () const</td></tr>
<tr class="separator:ac69b77e4f90de77ef77ed2405b083b59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fac8b49df965325867e36b6035f05f6" id="r_a6fac8b49df965325867e36b6035f05f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6fac8b49df965325867e36b6035f05f6">SetOcclusionTexture</a> (const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;tex)</td></tr>
<tr class="memdesc:a6fac8b49df965325867e36b6035f05f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">环境光遮蔽纹理。仅使用其R通道的值。  <br /></td></tr>
<tr class="separator:a6fac8b49df965325867e36b6035f05f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9422a76b17cb8af712bc5b364fd379a6" id="r_a9422a76b17cb8af712bc5b364fd379a6"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9422a76b17cb8af712bc5b364fd379a6">GetOcclusionTexture</a> () const</td></tr>
<tr class="separator:a9422a76b17cb8af712bc5b364fd379a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89427f8c099507b1c09022a8720d6946" id="r_a89427f8c099507b1c09022a8720d6946"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a89427f8c099507b1c09022a8720d6946">SetMetallic</a> (double metallic)</td></tr>
<tr class="memdesc:a89427f8c099507b1c09022a8720d6946"><td class="mdescLeft">&#160;</td><td class="mdescRight">金属度。取值区间：[0, 1]。0表示非金属，1表示完全金属。  <br /></td></tr>
<tr class="separator:a89427f8c099507b1c09022a8720d6946"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a372587024e015d670fa520ff267f170e" id="r_a372587024e015d670fa520ff267f170e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a372587024e015d670fa520ff267f170e">GetMetallic</a> () const</td></tr>
<tr class="separator:a372587024e015d670fa520ff267f170e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cfbb8468f3096d13baeb25d74ad563b" id="r_a3cfbb8468f3096d13baeb25d74ad563b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3cfbb8468f3096d13baeb25d74ad563b">SetRoughness</a> (double roughness)</td></tr>
<tr class="memdesc:a3cfbb8468f3096d13baeb25d74ad563b"><td class="mdescLeft">&#160;</td><td class="mdescRight">粗糙度。取值区间：[0, 1]。0表示光滑的表面，1表示粗糙的表面。  <br /></td></tr>
<tr class="separator:a3cfbb8468f3096d13baeb25d74ad563b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe486896fb411c789c0e17e3318989c3" id="r_abe486896fb411c789c0e17e3318989c3"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abe486896fb411c789c0e17e3318989c3">GetRoughness</a> () const</td></tr>
<tr class="separator:abe486896fb411c789c0e17e3318989c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aac7b478a34de024901fe7913a46631" id="r_a8aac7b478a34de024901fe7913a46631"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8aac7b478a34de024901fe7913a46631">SetSpecularColor</a> (const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;clr)</td></tr>
<tr class="memdesc:a8aac7b478a34de024901fe7913a46631"><td class="mdescLeft">&#160;</td><td class="mdescRight">镜面反射颜色。金属材质的高光颜色。  <br /></td></tr>
<tr class="separator:a8aac7b478a34de024901fe7913a46631"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65c5a385fe93b6b2aad929827c2f61f4" id="r_a65c5a385fe93b6b2aad929827c2f61f4"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a65c5a385fe93b6b2aad929827c2f61f4">GetSpecularColor</a> () const</td></tr>
<tr class="separator:a65c5a385fe93b6b2aad929827c2f61f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075d7a34956e56f03658e4e4e49a7ddc" id="r_a075d7a34956e56f03658e4e4e49a7ddc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a075d7a34956e56f03658e4e4e49a7ddc">SetIndexOfRefraction</a> (double refraction)</td></tr>
<tr class="memdesc:a075d7a34956e56f03658e4e4e49a7ddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">折射率。仅用于透明或半透明材质。  <br /></td></tr>
<tr class="separator:a075d7a34956e56f03658e4e4e49a7ddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61a7fde3dce76d1ac8508d1c9af50127" id="r_a61a7fde3dce76d1ac8508d1c9af50127"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a61a7fde3dce76d1ac8508d1c9af50127">GetIndexOfRefraction</a> () const</td></tr>
<tr class="separator:a61a7fde3dce76d1ac8508d1c9af50127"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a35ffa3a3d130f358791c8288f7f3d261" id="r_a35ffa3a3d130f358791c8288f7f3d261"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeo3dml_1_1_color.html">Color</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a35ffa3a3d130f358791c8288f7f3d261">baseColor_</a></td></tr>
<tr class="memdesc:a35ffa3a3d130f358791c8288f7f3d261"><td class="mdescLeft">&#160;</td><td class="mdescRight">对象自身的颜色。  <br /></td></tr>
<tr class="separator:a35ffa3a3d130f358791c8288f7f3d261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e51911bc333983d68d8450a8ce66219" id="r_a8e51911bc333983d68d8450a8ce66219"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeo3dml_1_1_texture.html">Texture</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8e51911bc333983d68d8450a8ce66219">baseTexture_</a></td></tr>
<tr class="memdesc:a8e51911bc333983d68d8450a8ce66219"><td class="mdescLeft">&#160;</td><td class="mdescRight">对象自身纹理。有纹理时忽略baseColor_。  <br /></td></tr>
<tr class="separator:a8e51911bc333983d68d8450a8ce66219"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c462c8f691f25cb41c4537a2b0d8981" id="r_a4c462c8f691f25cb41c4537a2b0d8981"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeo3dml_1_1_color.html">Color</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4c462c8f691f25cb41c4537a2b0d8981">emissiveColor_</a></td></tr>
<tr class="memdesc:a4c462c8f691f25cb41c4537a2b0d8981"><td class="mdescLeft">&#160;</td><td class="mdescRight">若对象发光，指定其发光的颜色。  <br /></td></tr>
<tr class="separator:a4c462c8f691f25cb41c4537a2b0d8981"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91da4338a774c771978166fa9b5db0df" id="r_a91da4338a774c771978166fa9b5db0df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeo3dml_1_1_texture.html">Texture</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a91da4338a774c771978166fa9b5db0df">normalTexture_</a></td></tr>
<tr class="memdesc:a91da4338a774c771978166fa9b5db0df"><td class="mdescLeft">&#160;</td><td class="mdescRight">对象的法向纹理。使用其RGB通道的值。  <br /></td></tr>
<tr class="separator:a91da4338a774c771978166fa9b5db0df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dbf660cb0b69b606e27a5868e9753d9" id="r_a0dbf660cb0b69b606e27a5868e9753d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeo3dml_1_1_texture.html">Texture</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0dbf660cb0b69b606e27a5868e9753d9">occlusionTexture_</a></td></tr>
<tr class="memdesc:a0dbf660cb0b69b606e27a5868e9753d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">环境光遮蔽纹理。仅使用其R通道的值。  <br /></td></tr>
<tr class="separator:a0dbf660cb0b69b606e27a5868e9753d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a592b8f5aa5ad21abf1d2aec6ec114a5e" id="r_a592b8f5aa5ad21abf1d2aec6ec114a5e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a592b8f5aa5ad21abf1d2aec6ec114a5e">metallic_</a></td></tr>
<tr class="separator:a592b8f5aa5ad21abf1d2aec6ec114a5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a924ce930ac8d2a8ee2c438c305108402" id="r_a924ce930ac8d2a8ee2c438c305108402"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a924ce930ac8d2a8ee2c438c305108402">roughness_</a></td></tr>
<tr class="separator:a924ce930ac8d2a8ee2c438c305108402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf4db0abc46b99f3064fa22e087e7b7f" id="r_abf4db0abc46b99f3064fa22e087e7b7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeo3dml_1_1_color.html">Color</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abf4db0abc46b99f3064fa22e087e7b7f">specularColor_</a></td></tr>
<tr class="separator:abf4db0abc46b99f3064fa22e087e7b7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbd9c76c1ffd4c2938b18ffb4596782d" id="r_abbd9c76c1ffd4c2938b18ffb4596782d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abbd9c76c1ffd4c2938b18ffb4596782d">indexOfRefraction_</a></td></tr>
<tr class="separator:abbd9c76c1ffd4c2938b18ffb4596782d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>可视化材质参数。 地调局标准（简称局标，或v1版标准）与地理信息协会标准（简称协会标准，或v2版标准）使用不同的材质定义。 两个版本使用完全不同的属性。但从实际效果看，v2版本涵盖了v1版本。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8a4acc69c944329f9f8beb24bee3b4bf" name="a8a4acc69c944329f9f8beb24bee3b4bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a4acc69c944329f9f8beb24bee3b4bf">&#9670;&#160;</a></span>PBRMaterial()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">geo3dml::PBRMaterial::PBRMaterial </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a912b401796a684dc8fedaaa6b002c85b" name="a912b401796a684dc8fedaaa6b002c85b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a912b401796a684dc8fedaaa6b002c85b">&#9670;&#160;</a></span>~PBRMaterial()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual geo3dml::PBRMaterial::~PBRMaterial </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad3c7de1244636330ca88536579d9fc58" name="ad3c7de1244636330ca88536579d9fc58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3c7de1244636330ca88536579d9fc58">&#9670;&#160;</a></span>GetBaseColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp; geo3dml::PBRMaterial::GetBaseColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af8e11fc78b07ef8c0ebdd8de8e255fdb" name="af8e11fc78b07ef8c0ebdd8de8e255fdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8e11fc78b07ef8c0ebdd8de8e255fdb">&#9670;&#160;</a></span>GetBaseTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp; geo3dml::PBRMaterial::GetBaseTexture </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abd22d20f9e65b558b02c418c88cabe18" name="abd22d20f9e65b558b02c418c88cabe18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd22d20f9e65b558b02c418c88cabe18">&#9670;&#160;</a></span>GetEmissiveColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp; geo3dml::PBRMaterial::GetEmissiveColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a61a7fde3dce76d1ac8508d1c9af50127" name="a61a7fde3dce76d1ac8508d1c9af50127"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61a7fde3dce76d1ac8508d1c9af50127">&#9670;&#160;</a></span>GetIndexOfRefraction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double geo3dml::PBRMaterial::GetIndexOfRefraction </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a372587024e015d670fa520ff267f170e" name="a372587024e015d670fa520ff267f170e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a372587024e015d670fa520ff267f170e">&#9670;&#160;</a></span>GetMetallic()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double geo3dml::PBRMaterial::GetMetallic </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac69b77e4f90de77ef77ed2405b083b59" name="ac69b77e4f90de77ef77ed2405b083b59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac69b77e4f90de77ef77ed2405b083b59">&#9670;&#160;</a></span>GetNormalTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp; geo3dml::PBRMaterial::GetNormalTexture </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9422a76b17cb8af712bc5b364fd379a6" name="a9422a76b17cb8af712bc5b364fd379a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9422a76b17cb8af712bc5b364fd379a6">&#9670;&#160;</a></span>GetOcclusionTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp; geo3dml::PBRMaterial::GetOcclusionTexture </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abe486896fb411c789c0e17e3318989c3" name="abe486896fb411c789c0e17e3318989c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe486896fb411c789c0e17e3318989c3">&#9670;&#160;</a></span>GetRoughness()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double geo3dml::PBRMaterial::GetRoughness </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a65c5a385fe93b6b2aad929827c2f61f4" name="a65c5a385fe93b6b2aad929827c2f61f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65c5a385fe93b6b2aad929827c2f61f4">&#9670;&#160;</a></span>GetSpecularColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp; geo3dml::PBRMaterial::GetSpecularColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac5c04ab716dd2dc987dade7d84ecb4a4" name="ac5c04ab716dd2dc987dade7d84ecb4a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5c04ab716dd2dc987dade7d84ecb4a4">&#9670;&#160;</a></span>SetBaseColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetBaseColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>clr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>基础颜色 </p>

</div>
</div>
<a id="a8a5537fa2939159bc46d2c088aaa89a6" name="a8a5537fa2939159bc46d2c088aaa89a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a5537fa2939159bc46d2c088aaa89a6">&#9670;&#160;</a></span>SetBaseTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetBaseTexture </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>tex</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>基础纹理。有纹理时忽略基础颜色参数。 </p>

</div>
</div>
<a id="a8cc6e5e5bc0661a42eea5f808bdf9c3d" name="a8cc6e5e5bc0661a42eea5f808bdf9c3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cc6e5e5bc0661a42eea5f808bdf9c3d">&#9670;&#160;</a></span>SetEmissiveColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetEmissiveColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>clr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>对象发光时的颜色。 </p>

</div>
</div>
<a id="a075d7a34956e56f03658e4e4e49a7ddc" name="a075d7a34956e56f03658e4e4e49a7ddc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a075d7a34956e56f03658e4e4e49a7ddc">&#9670;&#160;</a></span>SetIndexOfRefraction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetIndexOfRefraction </td>
          <td>(</td>
          <td class="paramtype">double</td>          <td class="paramname"><span class="paramname"><em>refraction</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>折射率。仅用于透明或半透明材质。 </p>

</div>
</div>
<a id="a89427f8c099507b1c09022a8720d6946" name="a89427f8c099507b1c09022a8720d6946"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89427f8c099507b1c09022a8720d6946">&#9670;&#160;</a></span>SetMetallic()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetMetallic </td>
          <td>(</td>
          <td class="paramtype">double</td>          <td class="paramname"><span class="paramname"><em>metallic</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>金属度。取值区间：[0, 1]。0表示非金属，1表示完全金属。 </p>

</div>
</div>
<a id="ad0bc79d8894d179aebcee2defaceccc7" name="ad0bc79d8894d179aebcee2defaceccc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0bc79d8894d179aebcee2defaceccc7">&#9670;&#160;</a></span>SetNormalTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetNormalTexture </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>tex</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>对象的法向纹理。 </p>

</div>
</div>
<a id="a6fac8b49df965325867e36b6035f05f6" name="a6fac8b49df965325867e36b6035f05f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fac8b49df965325867e36b6035f05f6">&#9670;&#160;</a></span>SetOcclusionTexture()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetOcclusionTexture </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>tex</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>环境光遮蔽纹理。仅使用其R通道的值。 </p>

</div>
</div>
<a id="a3cfbb8468f3096d13baeb25d74ad563b" name="a3cfbb8468f3096d13baeb25d74ad563b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cfbb8468f3096d13baeb25d74ad563b">&#9670;&#160;</a></span>SetRoughness()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetRoughness </td>
          <td>(</td>
          <td class="paramtype">double</td>          <td class="paramname"><span class="paramname"><em>roughness</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>粗糙度。取值区间：[0, 1]。0表示光滑的表面，1表示粗糙的表面。 </p>

</div>
</div>
<a id="a8aac7b478a34de024901fe7913a46631" name="a8aac7b478a34de024901fe7913a46631"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aac7b478a34de024901fe7913a46631">&#9670;&#160;</a></span>SetSpecularColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void geo3dml::PBRMaterial::SetSpecularColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgeo3dml_1_1_color.html">Color</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>clr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>镜面反射颜色。金属材质的高光颜色。 </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a35ffa3a3d130f358791c8288f7f3d261" name="a35ffa3a3d130f358791c8288f7f3d261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35ffa3a3d130f358791c8288f7f3d261">&#9670;&#160;</a></span>baseColor_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeo3dml_1_1_color.html">Color</a> geo3dml::PBRMaterial::baseColor_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>对象自身的颜色。 </p>

</div>
</div>
<a id="a8e51911bc333983d68d8450a8ce66219" name="a8e51911bc333983d68d8450a8ce66219"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e51911bc333983d68d8450a8ce66219">&#9670;&#160;</a></span>baseTexture_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> geo3dml::PBRMaterial::baseTexture_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>对象自身纹理。有纹理时忽略baseColor_。 </p>

</div>
</div>
<a id="a4c462c8f691f25cb41c4537a2b0d8981" name="a4c462c8f691f25cb41c4537a2b0d8981"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c462c8f691f25cb41c4537a2b0d8981">&#9670;&#160;</a></span>emissiveColor_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeo3dml_1_1_color.html">Color</a> geo3dml::PBRMaterial::emissiveColor_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>若对象发光，指定其发光的颜色。 </p>

</div>
</div>
<a id="abbd9c76c1ffd4c2938b18ffb4596782d" name="abbd9c76c1ffd4c2938b18ffb4596782d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbd9c76c1ffd4c2938b18ffb4596782d">&#9670;&#160;</a></span>indexOfRefraction_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double geo3dml::PBRMaterial::indexOfRefraction_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a592b8f5aa5ad21abf1d2aec6ec114a5e" name="a592b8f5aa5ad21abf1d2aec6ec114a5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a592b8f5aa5ad21abf1d2aec6ec114a5e">&#9670;&#160;</a></span>metallic_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double geo3dml::PBRMaterial::metallic_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a91da4338a774c771978166fa9b5db0df" name="a91da4338a774c771978166fa9b5db0df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91da4338a774c771978166fa9b5db0df">&#9670;&#160;</a></span>normalTexture_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> geo3dml::PBRMaterial::normalTexture_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>对象的法向纹理。使用其RGB通道的值。 </p>

</div>
</div>
<a id="a0dbf660cb0b69b606e27a5868e9753d9" name="a0dbf660cb0b69b606e27a5868e9753d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dbf660cb0b69b606e27a5868e9753d9">&#9670;&#160;</a></span>occlusionTexture_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeo3dml_1_1_texture.html">Texture</a> geo3dml::PBRMaterial::occlusionTexture_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>环境光遮蔽纹理。仅使用其R通道的值。 </p>

</div>
</div>
<a id="a924ce930ac8d2a8ee2c438c305108402" name="a924ce930ac8d2a8ee2c438c305108402"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a924ce930ac8d2a8ee2c438c305108402">&#9670;&#160;</a></span>roughness_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double geo3dml::PBRMaterial::roughness_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abf4db0abc46b99f3064fa22e087e7b7f" name="abf4db0abc46b99f3064fa22e087e7b7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf4db0abc46b99f3064fa22e087e7b7f">&#9670;&#160;</a></span>specularColor_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgeo3dml_1_1_color.html">Color</a> geo3dml::PBRMaterial::specularColor_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/geo3dml/<a class="el" href="_p_b_r_material_8h_source.html">PBRMaterial.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
